package com.itheima.entity;

public class Account {
    public Account(Integer id, String name, double money) {
        this.id = id;
        this.name = name;
        this.money = money;
    }

    public Account() {
    }

    private Integer id;
    private String name;
    private double money;
    public void init(){
        System.out.println("account对象初始化");
    }
    public void destroy(){
        System.out.println("accouny对象销毁");
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
